package com.leador.module.response.fence;

/**
 * 报警实体类
 */
public class Alarms {
    private long time;

    private int action;

    /**
     * 获取触发报警时间
     * @return
     */
    public long getTime() {
        return time;
    }

    /**
     * 设置触发报警时间
     * @param time
     */
    public void setTime(long time) {
        this.time = time;
    }

    /**
     * 获取动作信息
     * @return
     */
    public int getAction() {
        return action;
    }

    /**
     * 设置动作信息
     * @param action
     */
    public void setAction(int action) {
        this.action = action;
    }

    @Override
    public String toString() {
        return "Alarms{" +
                "time=" + time +
                ", action=" + action +
                '}';
    }
}
